<?php

require_once ('library/Zend/View/Helper/Abstract.php');

class Zend_View_Helper_WeiboMultiPics extends Zend_View_Helper_Abstract {
	public function weiboMultiPics($weiboid,$replace){
		$dbWeiboMultiPics = new Application_Model_DbTable_WeiboMultiPics();
		$res= $dbWeiboMultiPics->getPicsListById($weiboid);
		$str="<ul>";
		foreach($res as $re){
		    $str.="<li><img src='".str_ireplace('thumbnail', $replace, $re['picurl'])."' alt='点击查看大图' title='点击查看大图'/></li>";
		}
		$str.="</ul>";
		return $str;
	}
}

?>